/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package facade;

import dao.*;
import domain.*;
import java.util.List;


/**
 *
 * @author rafael
 */
public class ClienteFacade{

private ClienteDao clienteDao;

    public ClienteFacade(){

    }
    
    public Clientes save(Clientes clientes){
        return getClienteDao().save(clientes);
    }

    public void delete(Clientes clientes){
        getClienteDao().delete(clientes);
    }

    public Clientes load(Integer id){
        return getClienteDao().load(id);
    }

    public List listAll(){
        return getClienteDao().listAll();
    }

    /**
     * @return the titlesDao
     */
    public ClienteDao getClienteDao() {
        return clienteDao;
    }

    /**
     * @param titlesDao the titlesDao to set
     */
    public void setClienteDao(ClienteDao clienteDao) {
        this.clienteDao = clienteDao;
    }

}
